home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 November
/
EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso
/
earcd
/
gfx
/
dust2.lha
/
Dust
/
DustHelp
/
loops
< prev
next >
Wrap
Text File
|
1995-09-28
|
728b
|
32 lines
Loops
-----------------------------------------------------------------
Dust can perform nested FOR-loops, the loop-counter is equal to
the loop-variable of the innerst loop.
The loop-counter is the number inserted into a string containg
format-commands.
Syntax:
FOR(<loop-variable>,<from>,<to>[,<step>])
.
.
.
END
Example:
for(i,1,10)
echo("unformatted:$, formatted:%")
end
Contains a string format-commands so this commands will be replaced by
the recent value of the loop-counter.
$ - inserts the value unformatted
% - inserts the value formatted
Example:
A string "$. Objekt: obj.%" is changed into "23. Objekt: obj.0023" if
the loop-counter was 23.